//
//  ViewController.m
//  NVCSmartConfig
//
//  Created by THNVC on 2018/5/30.
//  Copyright © 2018年 THNVC. All rights reserved.
//

#import "ViewController.h"
#import "NVCSmartConfig.h"

@interface ViewController ()
@property (nonatomic,strong) NVCSmartConfig *smartConfig;
@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.smartConfig = [[NVCSmartConfig alloc] init];
    [self.smartConfig smartConfigWithPwd:@"cloud@nvc"];
    self.smartConfig.smartConfigResultBlock = ^(NSArray *resultArray) {
        NSLog(@"+++++++++++:%@",resultArray);
    };
}


-(void)viewDidAppear:(BOOL)animated {
    
}



-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    [self.smartConfig endSmartConfig];
}




- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
